package leetcode_500;

/**
 *@author 周杨
 *PoorPigs_458
 *describe:AC 100%
 *see:https://www.cnblogs.com/mux1/p/6275797.html
 *2018年8月25日 下午3:27:15
 */
public class PoorPigs_458 {
	 public int poorPigs(int buckets, int minutesToDie, int minutesToTest) {
	      int pigs =0;
	      while(Math.pow((minutesToTest/minutesToDie+1), pigs)<buckets)
	    	  pigs++;
	      return pigs;
	   }
}
